<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DocuServe.Core.Entities.CmsAttribute>" %>
<%@ Import Namespace="DocuServe.Core.Entities" %>
<%@ Import Namespace="MyCode.Web.Mvc" %>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% Html.BeginForm(); %>
<fieldset>
    <legend>Fields</legend>
    <p>
        <label for="Name">
            Name:</label>
        <%= new MvcTextBox("Name") %>
        <%= Html.ValidationMessage("Name", "*") %>
    </p>
    <p>
        <label for="Type">
            Type:</label>
        <select id="Type" name="Type">
            <option label="Text" value="<%= DataType.Text.ToString() %>" selected="selected">
            </option>
            <option label="Numeric" value="<%= DataType.Numeric.ToString() %>"></option>
            <option label="Currency" value="<%= DataType.Currency.ToString() %>"></option>
            <option label="DateTime" value="<%= DataType.DateTime.ToString() %>"></option>
            <option label="YesNo" value="<%= DataType.YesNo.ToString() %>"></option>
        </select>
    </p>
    <p>
        <label for="Description">
            Description:</label>
        <%= new MvcTextBox("Description") %>
    </p>
    <p id="DefaultBooleanValueField">
        <label for="DefaultBooleanValue">
            Default Value:
        </label>
        <%= new MvcCheckBox("DefaultBooleanValue")%>
    </p>
    <p id="DefaultCurrencyValueField">
        <label for="DefaultCurrencyValue">
            Default Value:
        </label>
        <%= new MvcTextBox("DefaultCurrencyValue")%>
    </p>
    <p id="CurrencyField">
        <label for="Currency">
            Currency:</label>
        <%= new MvcTextBox("Currency") %>
    </p>
    <p id="DefaultDateTimeValueField">
        <label for="DefaultDateTimeValue">
            Default Value:</label>
        <%= new MvcTextBox("DefaultDateTimeValue") %>
    </p>
    <p id="DefaultNumericValueField">
        <label for="DefaultNumericValue">
            Default Value:
        </label>
        <%= new MvcTextBox("DefaultNumericValue")%>
    </p>
    <p id="DefaultStringValueField">
        <label for="DefaultStringValue">
            Default Value:
        </label>
        <%= new MvcTextBox("DefaultStringValue")%>
    </p>
    <p id="MaxLengthField">
        <label for="MaxLength">
            Default Value:
        </label>
        <%= new MvcTextBox("MaxLength")%>
    </p>
</fieldset>
<% Html.EndForm(); %>
